{"version":3,"file":"xy.min.js","sources":["xy.js"],"names":["AmCharts","AmXYChart","Class","inherits","AmRectangularChart","construct","a","this","chartType","base","call","theme","createEvents","maxZoomFactor","applyTheme","initChart","dataChanged","updateData","dispatchDataUpdated","updateScrollbar","drawChart","autoMargins","marginsUpdated","measureMargins","marginLeftReal","c","marginTopReal","b","plotAreaWidth","d","plotAreaHeight","graphsSet","clipRect","bulletSet","trendLinesSet","createValueAxes","xAxes","yAxes","valueAxes","e","length","f","position","rotate","setOrientation","orientation","push","ValueAxis","processValueAxis","graphs","processGraph","ifArray","chartData","chartScrollbar","updateScrollbars","zoomChart","cleanChart","hideXScrollbar","scrollbarH","removeListener","handleHSBZoom","destroy","hideYScrollbar","scrollbarV","handleVSBZoom","dispDUpd","chartCreated","zoomScrollbars","callMethod","chartCursor","toggleZoomOutButton","zoomObjects","zoomTrendLines","dispatchAxisZoom","heightMultiplier","widthMultiplier","showZB","isNaN","min","max","coordinateToValue","verticalPosition","horizontalPosition","dispatchZoomEvent","updateObjectSize","zoom","parseData","dataProvider","g","data","valueField","k","m","maxValue","type","valueBalloonsEnabled","zoomOut","chart","minMaxField","minTemp","NaN","maxTemp","listenTo","handleAxisSelfZoom","isString","xAxis","getValueAxisById","yAxis","valueAxis","axes","x","y","id","l","q","n","serialDataItem","index","p","h","Number","value","xField","yField","errorField","error","values","processFields","graph","formatString","numberFormatter","formatValue","indexOf","formatDataContextValue","dataContext","addChartScrollbar","scrollbarHeight","split","SimpleChartScrollbar","skipEvent","copyProperties","updateTrendLines","trendLines","processObject","TrendLine","valueAxisX","updateMargins","getScrollbarPosition","adjustMargins","updateChartScrollbar","draw","relativeZoom","fitMultiplier","multiplier","setAnimationPlayed","handleCursorZoom","selectionWidth","selectionHeight","selectionX","selectionY","removeChartScrollbar","handleReleaseOutside"],"mappings":"AAAAA,SAASC,UAAUD,SAASE,OAAOC,SAASH,SAASI,mBAAmBC,UAAU,SAASC,GAAGC,KAAKC,UAAU,IAAKR,UAASC,UAAU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